//
//  GameLayer.h
//  iFruitGame
//
//  Created by sxz on 2014/11/17.
//
//

#ifndef __GAMELAYER_H_
#define __GAMELAYER_H_

#include "cocos2d.h"
#include "Core/FruitCore.h"

USING_NS_CC;

class GameLayer : Layer
{
public:
    
    static Layer* gameLayer;
    
    static Scene* createScene();
    virtual bool init();
    void menuCloseCallback(Ref* pSender);
    
    CREATE_FUNC(GameLayer);
    
    MenuItemSprite *hintItem;
    
    FruitCore *fruitCore;
    
    bool gamePlaying;
    
private:
    
    void initTime();
    
    void pause(Ref* pSender);
    
    void playGame();
    
    void musicControll();
    
    void soundControll();
};

#endif /* defined(__GAMELAYER_H_) */
